package classes.Commands
{
	import components.editor.c_baseElement;
	import components.editor.c_dragRect;
	
	public class c_linkCommand extends c_baseCommand {
		protected var _prevLink: c_baseElement;
		protected var _setLink: c_baseElement;
		public function c_linkCommand(a_element: c_dragRect, a_link: c_baseElement) {
			super(a_element);
			_prevLink 	= a_element.link;
			_setLink	= a_link;
		}
		
		override public function Execute():void {
			(element as c_dragRect).link = _setLink;
		}
		
		override public function unExecute():void {
			(element as c_dragRect).link = _prevLink;
		}
	}
}